<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<title>Insert title here</title>
<script src="echart/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="table/layui/css/layui.css" media="all"/>
<link rel="stylesheet" href="table/css/style.css" media="all"/>
<link rel="stylesheet" type="text/css" href="table/assembly/jqgrid/css/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" href="table/assembly/jqgrid/css/css/redmond/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript">
function startassess(){
	if($("select[name='pdbbm']").val()!=null){
		$("form").submit();
	}else{
		alert("请选择评定表进行评定")
	}
}
function detail(pdbm,pdbbm){
	location.href="SubjectDetail?pdbm="+pdbm+"&pdbbm="+pdbbm;
}
</script>
<style>
/* Border styles */

.mt thead, .mt tr {
border-top-width: 1px;
border-top-style: solid;
border-top-color: #1da4f2;
}
.mt {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #1da4f2;
}
 
/* Padding and font style */
.mt td, .mt th {
padding: 5px 10px;
font-size: 17px;
font-family: Verdana;
color: black;
}
 
/* Alternating background colors */
.mt tr:nth-child(even) {
background: #1da4f2
}
.mt tr:nth-child(odd) {
background: #B0E2FF
}
</style>
</head>
<body>
<div class="layui-fluid">
<div class="layui-row layui-col-space10">
<div class="layui-col-md12">
	<form action="Subject" method="get">
		<div class="layui-row">
			<div class="layui-col-md2">
				<div class="layui-form-item">
					<div class="layui-input-inline">
						<select name="pdbbm" class="layui-input">
							<c:forEach items="${assesslist}" var="assess">
								<option value="${assess.pdbbm}">${assess.pdbmc}</option>
							</c:forEach>
						</select>
					</div>
				</div>
			</div>
			<div class="layui-col-md2">
				<input type="button"  class="layui-btn" value="开始评定" onclick="startassess();">
			</div>
		</div>
	</form>
</div>
<br>
<div class="layui-col-sm12 layui-col-md12">
<table border="1" cellspacing="0" width="100%" class="mt">
<tr><th colspan="5" >个人信息</th></tr>
<tr>
	<td>患者ID：${user.hzid}</td>
	<td>患者姓名：${user.hyxm}</td>
	<td>患者性别：${user.hyxb}</td>
	<td>住院床号：${user.zych}</td>
	<td>所在病区：${user.bqmc}</td>
</tr>
</table>
<table border="1" cellspacing="0" width="100%" class="mt" style="display:none">
<tr>
	<th>评定编码</th>
	<th>会员姓名</th>
	<th>评定表名称</th>
	<th>评定日期</th>
	<th>评定人员</th>
	<th>评定分数</th>
	<th width="50%">评定结果</th>
	<th>操作</th>
</tr>
<c:forEach items="${list}" var ="assess">
<tr>
	<td>${assess.pdbm}</td>
	<td>${assess.hyxm}</td>
	<td>${assess.pdbmc}</td>
	<td>${assess.pdrq}</td>
	<td>${assess.pdry}</td>
	<td>${assess.pdfs}</td>
	<td>${assess.pdjg}</td>
	<td><input type="button" value="查看" onclick="detail('${assess.pdbm}','${assess.pdbbm}')"></td>
</tr>
</c:forEach>
</table>
<table id="list2"></table>
</div>
</div>
</div>
<script type="text/javascript" src="table/layui/layui.js"></script>
        <!-- jqGrid -->
		<script type="text/javascript" src="table/assembly/jqgrid/js/jquery.jqGrid.src.js"></script>
		<script type="text/javascript" src="table/assembly/jqgrid/js/i18n/grid.locale-cn.js"></script>
		<!-- jqGrid 自适应宽高 -->
		<script type="text/javascript" src="table/js/tool/toolJqGrid.js"></script>
		<!-- jqGrid 数据连接 -->
		<script type="text/javascript">
		
		</script>
		<script type="text/javascript" src="table/jqGridContent/indexJqGrid.js"></script>
		<!-- 字体图标 -->
		<script type="text/javascript" src="table/iconfont/iconfont.js"></script>
		<!-- layer弹出层 -->
		<script type="text/javascript" src="table/js/tool/toolModal.js"></script>			
				
</body>
</html>